package com.xinjiang.electricpower.domain.DTO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

/**
 * @author feizhao
 * @date 2022/11/9
 * @apiNote 派工单查询条件DTO类
 */
@Data
@NoArgsConstructor
@ToString
@ApiModel("派工单查询条件DTO类")
public class PsmWorkOrderDTO {
    /**
     * 派工单id
     */
    @ApiModelProperty(value = "派工单id")
    private String id;
    /**
     * 派工单id
     */
    @ApiModelProperty(value = "批量派工单ids")
    private String[] ids;
    /**
     * 工单编号
     */
    @ApiModelProperty(value = "工单编号")
    private String workNo;
    /**
     * 工单类型
     */
    @ApiModelProperty(value = "工单类型")
    private String workType;
    /**
     * 工单类型
     */
    @ApiModelProperty(value = "作业类型")
    private String businessType;
    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private String status;
    /**
     * 工单名称
     */
    @ApiModelProperty(value = "工单名称")
    private String workName;
    /**
     * 开始时间
     */
    @ApiModelProperty(value = "工单开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate createTimeBegin;
    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "工单结束时间")
    private LocalDate createTimeEnd;
    /**
     * 接收人
     */
    @ApiModelProperty(value = "接收人")
    private String responsible;
}
